<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>vue3</title>
	</head>
	<body>
		<div id="demo1">
			<!-- <input type="button" name="" id="" value="" /> -->
			<p>old message1:"{{message1}}"</p>
			<p>reverse remessage2:"{{remessage2}}"</p>
			
			
		</div>
		
		
	</body>
</html>
<script src="js/vue.js"></script>
<script type="text/javascript">
	var v1=new Vue({
		el:"#demo1",
		data:{
			message1:"Hello"
		},
		computed:{
			remessage2:function(){
				return this.message1.split('').reverse().join('')
			}
		}
	});
</script>